#include<stdio.h>
#include<signal.h>
volatile int flag=0;
void handler(int sig)
{
    printf("Signal number::%d\n",sig);
    flag=1;
    printf("Changed!\n");
}
int main()
{
    signal(2,handler);
    while(!flag);
    printf("Process had exited!\n");
}
